package com.usian.job;


import com.usian.service.GoodsService;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.quartz.QuartzJobBean;

public class MyJob extends QuartzJobBean {
    @Autowired
    private GoodsService goodsService;
   /* @Override
    public void execute(JobExecutionContext arg0) throws JobExecutionException {

    }*/

    @Override
    protected void executeInternal(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        goodsService.selectStatus2();
    }
}